import request from '@/utils/request'

// 查询企业战略协议商品信息列表
export function listAgreement(query) {
  return request({
    url: '/supply/agreement/list',
    method: 'get',
    params: query
  })
}

// 查询企业战略协议商品信息详细
export function getAgreement(ID) {
  return request({
    url: '/supply/agreement/' + ID,
    method: 'get'
  })
}

// 新增企业战略协议商品信息
export function addAgreement(data) {
  return request({
    url: '/supply/agreement',
    method: 'post',
    data: data
  })
}

// 修改企业战略协议商品信息
export function updateAgreement(data) {
  return request({
    url: '/supply/agreement',
    method: 'put',
    data: data
  })
}

// 删除企业战略协议商品信息
export function delAgreement(ID) {
  return request({
    url: '/supply/agreement/' + ID,
    method: 'delete'
  })
}
